import java.time.LocalDateTime;

public abstract class User {
    protected String id;
    protected String username;
    protected String password;
    protected String phone;
    protected LocalDateTime registerTime;

    public User(String id, String username, String password, String phone) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.registerTime = LocalDateTime.now();
    }

    public String getId() { return id; }

    public String getUsername() { return username; }

    public String getPhone() { return phone; }

    public void setPhone(String phone) { this.phone = phone; }

    public LocalDateTime getRegisterTime() { return registerTime; }

    public String getPassword() { return password; }

    public void setPassword(String password) { this.password = password; }

    public abstract String getType();
}
